using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN ModulesServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:12/09/2010 36:08:02</para>
	/// <para>Class Name: ModulesServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class ModulesService : IModulesService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: Module_ID</para>
		/// <para>Output: ModulesEntity</para>
		///</summary>
		public ModulesEntity SelectOne(int Module_ID){
			ModulesDAO dao = new ModulesDAO();
			return dao.SelectOne(Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ModulesEntity</para>
		///</summary>
		public List<ModulesEntity> SelectAll(){
			ModulesDAO dao = new ModulesDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			ModulesDAO dao = new ModulesDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ModulesEntity</para>
		///</summary>
		public List<ModulesEntity> SelectAllFilter(string strFilter){
			ModulesDAO dao = new ModulesDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			ModulesDAO dao = new ModulesDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Save</para>
		/// <para>Input: ModulesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(ModulesEntity o){
			ModulesDAO dao = new ModulesDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Save</para>
		/// <para>Input: ModulesEntity</para>
		/// <para>Output: ModulesEntity</para>
		///</summary>
		public ModulesEntity SaveRet(ModulesEntity o){
			ModulesDAO dao = new ModulesDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of ModulesEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<ModulesEntity> list){
			ModulesDAO dao = new ModulesDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of ModulesEntity</para>
		/// <para>Output: List of ModulesEntity</para>
		///</summary>
		public List<ModulesEntity> SaveListRet(List<ModulesEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Update</para>
		/// <para>Input: ModulesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(ModulesEntity o){
			ModulesDAO dao = new ModulesDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of ModulesEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<ModulesEntity> list){
			ModulesDAO dao = new ModulesDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateModuleName</para>
		/// <para>Input: NewModuleName,Module_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateModuleName(string NewModuleName,int Module_ID){
			ModulesDAO dao = new ModulesDAO();
			return dao.UpdateModuleName(NewModuleName,Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateModuleTitle</para>
		/// <para>Input: NewModuleTitle,Module_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateModuleTitle(string NewModuleTitle,int Module_ID){
			ModulesDAO dao = new ModulesDAO();
			return dao.UpdateModuleTitle(NewModuleTitle,Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateIcon</para>
		/// <para>Input: NewIcon,Module_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateIcon(string NewIcon,int Module_ID){
			ModulesDAO dao = new ModulesDAO();
			return dao.UpdateIcon(NewIcon,Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateDescription</para>
		/// <para>Input: NewDescription,Module_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateDescription(string NewDescription,int Module_ID){
			ModulesDAO dao = new ModulesDAO();
			return dao.UpdateDescription(NewDescription,Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateModuleType</para>
		/// <para>Input: NewModuleType,Module_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateModuleType(Byte NewModuleType,int Module_ID){
			ModulesDAO dao = new ModulesDAO();
			return dao.UpdateModuleType(NewModuleType,Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateStatus</para>
		/// <para>Input: NewStatus,Module_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateStatus(Byte NewStatus,int Module_ID){
			ModulesDAO dao = new ModulesDAO();
			return dao.UpdateStatus(NewStatus,Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateModuleUrl</para>
		/// <para>Input: NewModuleUrl,Module_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateModuleUrl(string NewModuleUrl,int Module_ID){
			ModulesDAO dao = new ModulesDAO();
			return dao.UpdateModuleUrl(NewModuleUrl,Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateModuleIndex</para>
		/// <para>Input: NewModuleIndex,Module_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateModuleIndex(int NewModuleIndex,int Module_ID){
			ModulesDAO dao = new ModulesDAO();
			return dao.UpdateModuleIndex(NewModuleIndex,Module_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Delete</para>
		/// <para>Input: ModulesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(ModulesEntity o){
			ModulesDAO dao = new ModulesDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: Module_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int Module_ID){
			ModulesDAO dao = new ModulesDAO();
			return dao.DeleteByID(Module_ID);
		}
		#endregion

		#region Select,delete by Module_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END ModulesWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

